home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group99a.txt
/
000154_icon-group-sender _Tue Jul 13 16:36:15 1999.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
1KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id QAA21471
for icon-group-addresses; Tue, 13 Jul 1999 16:35:48 -0700 (MST)
Message-Id: <199907132335.QAA21471@baskerville.CS.Arizona.EDU>
From: "Iain Alexander" <ia@stryx.demon.co.uk>
To: icon-group@optima.CS.Arizona.EDU
Date: Tue, 13 Jul 1999 23:16:49 +0100
Subject: Re: Versions 9.3.2 of Icon and IPL available for Unix
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
On 13 Jul 99, at 12:18, Hugh Sasse wrote:
> On 10 Jul 1999, Gregg Townsend wrote:
>
> > Version 9.3.2 adds one new feature to Icon: The files in a directory
> > can be listed by opening the directory as a file. Subsequent reads
> > return the names of the files contained in the directory. The names
> > are returned in no particular order, and for Unix, the directories
> > "." and ".." are included.
> >
> I cannot see a function which will allow one to determine if the list of
> names one is reading is due to reading a genuine directory or a file
> produced by 'ls -a > files'. There seems to be no stat or lstat function.
> Have I missed something?
Perhaps. You appear to want to open("directory/files"), whereas you actually
open the directory itself - open("directory").
Or perhaps *I've* misunderstood. :-)
--
Iain Alexander PGP 1024-bit key id B501A0AD
ia@stryx.demon.co.uk I.Alexander@bra0105.wins.icl.co.uk